﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Threading;


namespace caPrintHeartShape
{
    class PrintHeartShape
    {
        static void Main(string[] args)
        {
            #region 打印“心形”
            int[] tab ={ 
                              0,1,0,0,0,1,0,
                              1,0,1,0,1,0,1,
                              1,0,0,1,0,0,1,
                              1,0,0,0,0,0,1,
                              0,1,0,0,0,1,0,
                              0,0,1,0,1,0,0,
                              0,0,0,1,0,0,0 
                       };
            for (int i = 0; i < 49; i++)
            {
                if (i % 7 == 0)
                {
                    Console.Write("\n");
                }
                if (tab[i] == 0)
                {
                    Console.Write("  ");//注意这里双引号之间有两个空格
                }
                else
                {
                    Console.Write(" *");//注意这里*前有个空格
                }
            }
            Console.WriteLine(Environment.NewLine + "\n");

            #endregion

            Console.ReadKey();
        }


    }
}
